import json


class ReadLoginData:
    @classmethod
    def readlogindata(cls, file_path):
        data_list = []
        with open(file_path, "r", encoding="utf-8") as f:
            data = json.load(f)
            for i in data:
                data_list.append(tuple((i.get("resp_body"), i.get("status_code"), i.get("success"),
                                        i.get("code"), i.get("message"))))
            return data_list





# if __name__ == '__main__':
#     ReadLoginData.readlogindata()
